﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XbsWebAPI.Application.CampRoom.Dtos;
using XbsWebAPI.Application.QueryModel;

namespace XbsWebAPI.Application
{
    /// <summary>
    /// 配套设置 App接口
    /// </summary>
    public interface ISupportingFacilityAppService
    {
        /// <summary>
        /// 新建 配套服务
        /// </summary>
        /// <param name="model">新建对象</param>
        /// <returns></returns>
        Task<ResultDto<string>> CreateSupportingFacilityAsync(CreateSupportingFacilityDto model);

        /// <summary>
        /// 删除配套服务
        /// </summary>
        /// <param name="id">服务Id</param>
        /// <returns></returns>
        Task<ResultDto<string>> RemoveSupportingFacilityAsync(Guid id);

        /// <summary>
        /// 更新 配套服务
        /// </summary>
        /// <param name="model">更新对象</param>
        /// <returns></returns>
        Task<ResultDto<string>> UpdateSupportingFacilityAsync(EditSupportingFacilityDto model);

        /// <summary>
        /// 配套服务 分页查询
        /// </summary>
        /// <param name="query">查询条件</param>
        /// <returns></returns>
        ResultDto<PageListDto<ListSupportingFacility>> GetSupportingFacilityPagedList(QuerySupportingFacility query);
        ResultDto<List<ListSupportingFacility>> GetSupportingFacilityList();
    }
}
